package main

import (
	"fmt"
	"sync/atomic"
)

func main() {
	a:=int64(1)
	fmt.Println(atomic.LoadInt64(&a))
	atomic.AddInt64(&a, 1)  //每次给a加1
	fmt.Println(a)
}
